import React, { Component } from 'react'
import Search from '../../components/Search'
import './index.less'


import Context from '@/components/context'

class Banner extends Component {
  render() {
    return (
      <div className="banner-wrap">
        <img src='//nnfw.jss.com.cn/86AE3A2D20A547EE9D7F77718B92D44A/banner-bj.jpg' alt="" className="banner-img-center" />

        <div className="banner-container">
          <div className="banner-container-box">
            <div className="home-title">
              <div className="title">企业名片查询</div>
              <div className="desp">轻松查询企业开票信息，让开票变的更简单</div>
            </div>
            <Context.Consumer >
              {(v) => <Search onSearch={(v)} />}
            </Context.Consumer>
          </div>
        </div>
      </div>
    )
  }
}

export default Banner;